#include <QApplication>
#include "qmlapplicationviewer.h"
#include <audiomanager.h>
#include <QGraphicsObject>
#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
     QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());

    AudioManager* audioManager = new AudioManager();


    viewer->setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
    viewer->setMainQmlFile(QLatin1String("qml/audio/main.qml"));
    viewer->showExpanded();

    QObject *rootObject = dynamic_cast<QObject*>(viewer->rootObject());
    QObject::connect(audioManager,SIGNAL(onset()),rootObject,SLOT(onset()));

    return app.exec();
}
